﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AMS.DeDuplicator.CommonLayer.Adapter
{
    public class TreeNodeAdapter : ISelectableText
    {
        TreeNode _node;

        public string Text
        {
            get { return _node.Text; }
            //set { _node.Text = value; }
        }

        public bool Selected
        {
            get { return _node.Checked; }
            //set { _node.Checked = value; }
        }

        public TreeNodeAdapter(TreeNode node)
        {
            InputValidator.ValidateNotNull(node);
            _node = node;
        }
    }
}
